package com.lexue.dao;

import java.util.List;

import com.lexue.domain.Message;
import com.lexue.domain.TeacherInfo;

public interface IMessage {

	public abstract void save(Message transientInstance);

	public abstract void delete(Message persistentInstance);

	public abstract Message findById(java.lang.Integer id);

	public abstract List findByExample(Message instance);

	public abstract List findByProperty(String propertyName, Object value);

	public abstract List findBySender(Object sender);

	public abstract List findBySenderEmail(Object senderEmail);

	public abstract List findBySenderPhone(Object senderPhone);

	public abstract List findBySenderMphone(Object senderMphone);

	public abstract List findBySenderAddress(Object senderAddress);

	public abstract List findByRequireDetail(Object requireDetail);

	public abstract List findByIsRead(Object isRead);

	public abstract List findAll();

	public abstract Message merge(Message detachedInstance);

	public abstract void attachDirty(Message instance);

	public abstract void attachClean(Message instance);
	public abstract List findbyTeacherID(TeacherInfo teacher);

}